﻿@{
    Layout = "~/Views/Shared/_BootstrapLayout.cshtml";
    PageData["Title"] = "Administrators only";
    ViewBag.Title = "Administrators Only";
}
<div class="row-fluid">
    <div class="span11 offset1">
        <hgroup class="title">
            <h3>@ViewBag.Title</h3>
        </hgroup>
    </div>
    <div class="span11 offset1">
        @if ( Roles.IsUserInRole("admin")) {
            <span> Welcome <b>@WebSecurity.CurrentUserName</b>! </span>
        }
        else {
             Response.Redirect("~/AdminError");
        }
    </div>
</div>